﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThanhTu.GNC.Media.KQXS.DataAccess.BL;

namespace GNCMedia.KQXS.UserControls
{
    public partial class ResultYesterDay : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                TimeofAwardsBL vtimeAwards = new TimeofAwardsBL();
                int rowCount = 0;
                rptrResultYesterday.DataSource = vtimeAwards.SelectAll_TimeAwards_Date(DateTime.Today.AddDays(-1), 1, 5, ref rowCount);
                rptrResultYesterday.DataBind();
            }
            catch (Exception ex)
            {
                Response.Write("rptrResultYesterday: " + ex.Message);
            }
        }
    }
}